package com.ymatou.app.home.testcase;

import org.junit.After;
import org.junit.AfterClass;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;
import org.junit.experimental.categories.Category;

import com.ymatou.app.home.service.GetOperationListCall;
import com.ymt.core.tool.Logger;
import com.ymt.utils.annotation.TestCase;
import com.ymt.utils.annotation.TestSuite;
import com.ymt.utils.tag.P1;
/**
*获取运营支配位接口
*FreeMaker Template自动生成代码
*/
@TestSuite
public class Ts_GetOperationList{
	private static GetOperationListCall getoperationlistCall;
	@BeforeClass
	public static void setUp() {
		Logger.createResultFile("获取运营支配位接口");
	}

	@Before
	public void caseUp() {
		getoperationlistCall=new GetOperationListCall();
	}

	@AfterClass
	public static void tearDown() {
		Logger.generateResult(getoperationlistCall.getOpurl());
	}

	@After
	public void caseDown() {
		Logger.end();
	}
	@Test
	@Category(P1.class)
	@TestCase
	public void Tc_GetOperationList_001() {
		Logger.start(true,"获取运营支配位成功");
		try {

			getoperationlistCall.callService();			
			Logger.comment("getoperationlistCall send:" + getoperationlistCall.getEntityString());
			Logger.comment("getoperationlistCall response:" + getoperationlistCall.getReturnData());
			Logger.verifyNotNull(getoperationlistCall.getOperation(), "验证接口返回数据不为空");
		
		} catch (Exception e) {
			Logger.fail(e);
		}
	}
}